<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改设备</title>
    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{/css/admin.css}">
    <script th:src="@{/js/jquery.js}"></script>
    <script th:src="@{/js/pintuer.js}"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="add">
        <strong><span class="icon-pencil-square-o">修改设备</span> </strong>
    </div>
    <div class="body-content">
        <form th:action="@{/equipment_modify/}+(${equipment.getEquid()})" method="post" class="form-x">
            <input type="hidden" name="id" value="${obj.id}" />
            <div class="form-group">
                <div class="label"><label>设备名称：</label></div>
                <div class="field">
                    <input type="text" class="input w50" name="equid" data-validate="required:请输入设备名称"  th:value="${equipment.getEquid()}" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label"><label>设备所在仓库：</label></div>
                <div class="field">
                    <input type="text" class="input w50" name="equlocation" data-validate="required:请输入设备所在仓库" th:value="${equipment.getEqulocation()}" />
                   <!-- <select th:name="equlocation" class="form-control" th:value="${equipment.getEqulocation()}" style="width: 200px;line-height: 100px; display: inline-block">
&lt;!&ndash;                        <option th:value="-1"></option>&ndash;&gt;
                        <option th:value="1号仓库">1号仓库</option>
                        <option th:value="2号仓库">2号仓库</option>
                        <option th:value="3号仓库">3号仓库</option>
                        <option th:value="4号仓库">4号仓库</option>
                        <option th:value="5号仓库">5号仓库</option>
                    </select>-->
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label"><label>设备管理员工号：</label></div>
                <div class="field">
                    <input type="text" class="input w50" name="equadmin" data-validate="required:请输入设备管理员工号" th:value="${equipment.getEquadmin()}" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label"></div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit">提交</button>
                </div>
            </div>
        </form>
         <div class="text" style="color: red ;text-align: center;font-size: 15px" th:text="${msg}"></div>
    </div>
</div>
</body>
</html>